package ldh.common.ui;

import com.jfoenix.controls.JFXDecorator;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.TilePane;
import javafx.stage.Stage;


public class JavafxMainApplication extends Application {

    public void start(Stage primaryStage) throws Exception {
        Parent node = FXMLLoader.load(JavafxMainApplication.class.getResource("/fxml/Main.fxml"));
        JFXDecorator jfxDecorator = new JFXDecorator(primaryStage, node);
        Scene scene = new Scene(jfxDecorator, 1200, 700);
        scene.getStylesheets().add(this.getClass().getResource("/css/fxdialog.css").toExternalForm());
        primaryStage.setScene(scene);
        primaryStage.show();

    }

    public static void main(String[] args) {
        launch(args);
    }
}
